package com.parenting.response;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * <p>
 * 广场信息链接
 * </p>
 *
 * @author zcj
 * @since 2021-04-28
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "Link对象", description = "广场信息链接")
public class LinkResponse implements Serializable {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "链接地址")
    @Length(max = 70, message = "链接地址不能超过70")
    @NotBlank(message = "链接地址不能为空")
    private String link;

    @ApiModelProperty(value = "类型 1:视频2:图片")
    @NotNull(message = "连接类型不能为空")
    private Integer linkType;


}
